const express = require('express')
const app = express()
const cors = require('cors')
app.use(cors())
app.get('/api', (req, res,) => {
    res.send({
        status: 201,
        msg: '获取学生信息成功',
        data: {
            name: '陈嘉兴',
            age: 25,
            sex: '男',
            readss: '家里'
        }
    })
})

app.listen(3007, () => {
    console.log('server runing at http://127.0.0.1:3007');
})
